package com.cheetah.exceptions;

public enum ServerError implements Error {

    ERROR_CODE_100101(100101,"生成会话组id失败！"),
    ;

    private String message;

    private int errorCode;


    private ServerError(int errorCode, String message){
        this.message = message;
        this.errorCode = errorCode;
    }

    public int getErrorCode(){
        return this.errorCode;
    }

    public String getMessage(){
        return this.message;
    }

    public ServerError getErrorEnums(){
        return this;
    }
}
